﻿@model eShopModernizedMVC.Models.CatalogItem

@{
    ViewBag.Title = "Details";
}

<h2 class="esh-body-title">Details</h2>

<div class="container">
    <div class="row">
        <div class="col-md-4">
            <img class="col-md-8 esh-picture" src="@Model.PictureUri" />
        </div>
        <dl class="col-md-4 dl-horizontal">
            <dt>
                @Html.DisplayNameFor(model => model.Name)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.Name)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.Description)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.Description)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.CatalogBrand.Brand)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.CatalogBrand.Brand)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.CatalogType.Type)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.CatalogType.Type)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.Price)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.Price)
            </dd>
        </dl>

        <dl class="col-md-4 dl-horizontal">
            <dt>
                @Html.DisplayNameFor(model => model.PictureFileName)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.PictureFileName)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.AvailableStock)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.AvailableStock)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.RestockThreshold)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.RestockThreshold)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.MaxStockThreshold)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.MaxStockThreshold)
            </dd>

            <dd class="esh-button-actions">
                
                @Html.ActionLink("[ Back to List ]", "Index", null, new { @class = "btn esh-button esh-button-secondary" })
                @Html.ActionLink("[ Edit ]", "Edit", new { id = Model.Id }, new { @class = "btn esh-button esh-button-primary" })
                
            </dd>
        </dl>
    </div>
</div>
